<!--
 * @Description: 
 * @Version: 1.0.0
 * @Author: gyh
 * @Date: 2021-08-25 16:36:35
 * @LastEditors: gyh
 * @LastEditTime: 2021-08-25 16:38:27
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- <script src="./xhr.js"></script> -->
    <script src="./ajax.js"></script>
    <script>
      http.ajax({
        url: 'http://api.douban.com/v2/movie/top250?start=25&count=25',
        // data: {
        //   start: 25,
        //   count: 25,
        // },
        success: function (result, status, xhr) {
          console.log(result, status, xhr)
        },
        error: (xhr, status, error) => {
          console.log(xhr, status, error)
        },
      })
    </script>
  </body>
</html>
